package com.systemsjr.jrenterprise;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.richclient.application.ApplicationLauncher;


public class Frontend {

	private static final Log logger = LogFactory.getLog(Frontend.class);
    public static void main(String[] args)
    {
		String rootContextDirectoryClassPath = "/com/systemsjr/jrappointment/context/";
		String startupContextPath = rootContextDirectoryClassPath
			+ "startup.xml";
						
		String richclientApplicationContextPath = rootContextDirectoryClassPath	+ "appbundle.xml";
		try {
			
			new ApplicationLauncher(startupContextPath, new String[] {
					richclientApplicationContextPath });
			System.out.println(startupContextPath);
		} catch (RuntimeException e) {
			logger.error("RuntimeException during startup", e);
			e.printStackTrace();
		}		
    }
}
